<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>personal</title>
    <!-- 引入css文件 -->
</head>
<body>
    <div class="top-bar">
        <div class="login-text"><div>注册页面</div></div>

         <div class="input">
        <div class="username">
            <span>用户名:</span>
            <input id="username" type="text" placeholder="请输入用户名">
        </div>
        <div class="password">
            <span>密码:</span>
            <input id="password" type="password" placeholder="请输入密码">
        </div>
        <div class="email">
            <span>邮箱:</span>
            <input id="email" type="email" placeholder="请输入邮箱">
        </div>
        </div> 
        
        <div class=login>
            <button class="submit">注册</button>
        </div>
    </div>
</body>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
    <script>
 const a = null

try {
    const b = JSON.parse(a)
    console.log(a.name)
} catch (e) {
    console.log(e);
    // console.log("发生异常:" + e)
}
    </script>
</html>

